package com.spring.crm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 何卓
 * @since 2022-01-10
 */
@Getter
@Setter
@TableName("t_user")
@ApiModel(value = "User对象", description = "")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("user_id")
    private String userId;

    @ApiModelProperty("用户名")
    @TableField("username")
    private String username;

    @ApiModelProperty("用户类型 1-员工 2-个人客户 3-公司客户")
    @TableField("user_type")
    private String userType;

    @ApiModelProperty("真实名称（昵称）")
    @TableField("realname")
    private String realname;

    @ApiModelProperty("员工角色 1-管理员 2-管理层 3-普通员工 4-销售人员")
    @TableField("staff_role")
    private String staffRole;

    @ApiModelProperty("密码")
    @TableField("password")
    private String password;

    @ApiModelProperty("联系电话")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("所属单位")
    @TableField("company")
    private String company;

    @ApiModelProperty("邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty("入职时间")
    @TableField("hiredate")
    private String hiredate;

    @ApiModelProperty("身份证号")
    @TableField("identity_card")
    private String identityCard;

    @ApiModelProperty("其他信息")
    @TableField("information")
    private String information;

    @ApiModelProperty("性别")
    @TableField("sex")
    private String sex;

    @ApiModelProperty("生日")
    @TableField("birthday")
    private String birthday;

    @ApiModelProperty("地址")
    @TableField("adress")
    private String adress;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("备注1")
    @TableField("remark1")
    private String remark1;

    @ApiModelProperty("备注2")
    @TableField("remark2")
    private String remark2;

    @TableField("department")
    private String department;

    @TableField("position")
    private String position;

    @TableField("create_time")
    private String createTime;

    @TableField("user_auth")
    private String userAuth;

}
